package DBLayer;

import java.util.ArrayList;
import ModelLayer.Product;

public interface IFDBProduct {
	// get all Products
    public ArrayList<Product> getAllProducts();
    // get all product with a name like filter
    public ArrayList<Product> getAllProducts(String name);
    // find one Product having the Product name 
    public Product searchProductByName(String name);
    // find it using the id.
    public Product searchProductById(int id);
    // insert new Product
    public int insertProduct(Product p) throws Exception;
    // update Product
    public int updateProduct(Product p);
    // delete Product
    public int deleteProduct(Product p);
}
